global section;
global count;       
global info;   
for k=1:4  
section(k).index = [];
section(k).delay = [];
section(k).wave = []; 
end
% section(1).index = [];
% section(1).delay = [];
% section(1).wave = [];
% section(2).index = [];
% section(2).delay = [];
% section(2).wave = [];
% section(3).index = [];
% section(3).delay = [];
% section(3).wave = [];
% section(4).index = [];
% section(4).delay = [];
% section(4).wave = [];
count = 1;
info.fs = 44100;    
info.basic_tone_num = 1;
info.l = 0.5;     % to ctrl the rate
info.section_len = 3;   % number of beats in one section
info.wave_len = int32(info.fs*info.section_len*info.l);   % one section's wave's length
info.instrument = 1;  
info.disp_mode = 0;   % 0 for none, 1 for time , 2 for freq
info.if_pure = 0;  % if with bgm
info.loud = 1;  
info.music_name = 'always_with_me';
info.env_mode = 1; % 1 for ADSR; 2 for interpolation; 3 for curve fitting
info.wave_fig = figure('position',[100,100,1200,150],'name','wave','Visible','off');
info.wave_anime = animatedline;
info.freq_fig = figure('position',[200,200,500,400],'name','freq','Visible','off');
info.equa_C = [1,1,1,1,1,1,1,1];  % the equalizer's parameters, each part's gain
info.equa_N = 120;  % the time domain equalizer's degree number for filter  
info.equa = 0;  % 0 for none, 1 for T_EQ, 2 for F_EQ
